var mongoose = require('mongoose');
//引入分页插件
var mongoosePaginate = require('mongoose-paginate');


var commentSchema = new mongoose.Schema({
    new_id:String,
    people:String,
    content:String,
    value:Number,
    date:{type:Date,default:Date.now}
});

//使用分页插件
commentSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Comment',commentSchema);